﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MadLibrary.Web
{
    /// <summary>
    /// Thrown when HTML document is invalid.
    /// </summary>
    [Serializable]
    public class HtmlInvalidDocumentException : Exception
    {
        /// <summary>
        /// Creates new HtmlInvalidDoocument exception.
        /// </summary>
        public HtmlInvalidDocumentException()
            : base("Ivalid document passed to be parsed.")
        {
        }

        /// <summary>
        /// Creates new HtmlInvalidDocument exception with specified message.
        /// </summary>
        /// <param name="Message"></param>
        public HtmlInvalidDocumentException(string Message)
            : base(Message)
        {
        }
    }
}